package com.terrace.web.constant;

import java.util.Locale;

import org.springframework.context.MessageSource;

/**
 * easyui全文
 * @author jiangyg
 *
 */
public class EasyuiConstant {
	
	private static MessageSource easyuiSource;

	public static MessageSource getEasyuiSource() {
		return easyuiSource;
	}

	public static void setEasyuiSource(MessageSource easyuiSource) {
		EasyuiConstant.easyuiSource = easyuiSource;
	}
	
	public static String message(String key, Object... params) {
		return EasyuiConstant.easyuiSource.getMessage(key, params, Locale.CHINA);
	}

}
